/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.app.dao;

/**
 *
 * @author mrapple
 */
public interface BaseDAO<T> {

    /**
     * Find one entity by id
     *
     * @param id
     * @return
     */
    T findOne(Long id);

    /**
     *
     * @param t
     * @return
     */
    T save(T t);

    /**
     *
     * @param t
     * @return
     */
    void update(T... t);

    /**
     *
     * @param t
     * @return
     */
    void delete(T... t);
    /**
     * @return
     */
}
